package com.pureland.common.constants;

import java.time.format.DateTimeFormatter;

/**
 * @projectName: pureland_cloud
 * @className: com.pureland.common.constants.FormatConstants
 * @description: 格式化常量(时间格式化常量)
 * @author: tong.li
 * @createTime: 2020/10/19 14:40
 * @version: v1.0
 * @copyright: 版权所有 李彤 © 2020
 */
public class FormatConstants {

    public static final String NORM_DATE_PATTERN = "yyyy-MM-dd";

    public static final String NORM_TIME_PATTERN = "HH:mm:ss";

    public static final String NORM_DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";

    public static final String YYYYMMDD = "yyyyMMdd";

    public static final String YYYYMM = "yyyyMM";


    public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";


    public static DateTimeFormatter getFormatter(String format) {
        return DateTimeFormatter.ofPattern(format);
    }


}
